home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Dir(REL2) ARP User's Manual Dir(REL2)
-
-
-
- NAME
- Dir - Display a sorted, formatted display of files on a
- disk.
-
- SYNOPSIS
- DIR - OPT/K { ADFHIS } ALL/S DIRECT/S FILES/S HILITE/S
- INTER=INTERACT/S SIZE/S
-
- DESCRIPTION
- Dir by itself displays any files and directories in the
- current directory. By default, Dir will display any
- subdirectories, one per line, in sorted order, and then any
- files, in two columns, also in sorted order. Directories
- are followed by the string "(dir)".
-
- You may also specify a directory as an argument to Dir. The
- BCPL directory had difficulties with wildcards and
- filenames, but the ARP Dir handles these with ease. If you
- specify a directory name, Dir will generate a listing of
- that directory. If instead, you specify a filename, Dir will
- simply echo that filename, if it finds it on the disk.
-
- If you use wildcards in the directory argument, the display
- is somewhat different. If the wildcard pattern you supply
- matches a directory, then the full name of the directory,
- along with the string "(dir)" will be displayed. After
- that, in sorted order, will be the contents of that
- directory. This will occur for any directories which match
- the pattern you specified. If the wildcard pattern matches
- any files, they will be displayed to the screen as well.
-
- OPTIONS
- The ARP Dir command supports all the options of the original
- BCPL Dir, and several more as well. Using the ARP Dir
- command, you can use the keyword OPT, and then the single
- letter which represents the option you desire, or you may
- use the clearer keyword equivalents supplied. The options
- and their keyword equivalents are described below:
-
- ALL (OPT A): This generates a complete sorted and
- formatted listing of the files and
- subdirectories in the specified branch of
- the directory tree. You may use other
- options or keywords along with ALL to
- generate the display you need. Each new
- directory will cause an additional level of
- indentation to be added, making the
- directory organization clearer to the eye.
-
- DIRECT (OPT D): This causes Dir to generate a listing
- consisting only of directories. When used
- with the ALL or OPT A directive, all
-
-
-
- Page 1 (printed 2/22/88)
-
-
-
-
-
-
- Dir(REL2) ARP User's Manual Dir(REL2)
-
-
-
- directories in that branch of the directory
- tree will be displayed.
-
- FILES (OPT F): This causes Dir to generate a sorted listing
- consisting only of files. The ALL keyword
- or OPT A has no effect on this option, but
- it may usefully be combined with others,
- such as the SIZE directive, to be discussed
- below.
-
- HILITE (OPT H): This enables pretty printing of Dir's
- output. All directory names will be
- displayed in inverse video.
-
- SIZE (OPT S): This displays the size of all files found,
- in bytes. If a directory is found, it is
- identified with the string "(dir)", as
- usual.
-
- INTER=INTERACT (OPT I):
- This allows interactive file browsing
- through a directory or a disk. You can use
- other options, such as ALL, with this one.
- Using this option, you will be presented
- with a file or directory name, followed by a
- question mark. If the name displayed is a
- directory, identified in the usual way with
- "(dir)", or by inverse video if you selected
- the HILITE option, you may enter the
- directory by typing E. If the directory is
- empty, you may delete it by typing DEL. You
- can move back up the directory tree at any
- time by entering B. If the directory you are
- in has no parent, typing B will exit the Dir
- program. To advance to the next entry,
- simply press Return.
-
- If the name displayed is a File, you may
- view the file by entering T, for "Type", you
- may delete the file using the DEL keyword,
- and you may advance to the next entry by
- pressing Return. You can also move up the
- directory tree by entering a B, but you must
- be at a directory entry to descend the tree.
-
- You can exit the interactive mode of Dir at
- anytime by typing Q. If you forget any of
- these options, online help is available by
- typing '?', as usual.
-
-
-
-
-
-
- Page 2 (printed 2/22/88)
-
-
-
-
-
-
- Dir(REL2) ARP User's Manual Dir(REL2)
-
-
-
- EXAMPLE
- To get a listing of all directories on drive DF1:
-
- DIR DF1: ALL DIRECT
- or
- DIR DF1: OPT AD
-
- To get a listing of all directories and files and the sizes
- of the files on drive df0:, as well as displaying the
- directories in inverse video do:
-
- DIR DF1: ALL SIZES HILITE
- or
- DIR DF1: OPT ASH
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 2/22/88)
-
-
-
-